// 百度地图API功能
var map = new BMap.Map("ditu", {
	mapType: BMAP_HYBRID_MAP,
	minZoom: 4,
	maxZoom: 12
}); // 创建Map实例.默认使用混合地图,设置最大最小缩放级别
map.centerAndZoom(new BMap.Point(115.321934, 32.537521), 6); // 初始化地图,设置中心点坐标和地图级别
map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
var icon = new BMap.Icon('./image/marker-2.png', new BMap.Size(23, 25), {
	offset: new BMap.Size(10, 25), // 指定定位位置  
});
var icon2 = new BMap.Icon('./image/marker-1.png', new BMap.Size(23, 25), {
	offset: new BMap.Size(10, 25), // 指定定位位置  
});
var mkr = new BMap.Marker(new BMap.Point(118.860848, 28.907018), {
	icon: icon2
});
map.addOverlay(mkr);

var mkr2 = new BMap.Marker(new BMap.Point(120.466173, 30.361086), {
	icon: icon2
});
map.addOverlay(mkr2);

var mkr3 = new BMap.Marker(new BMap.Point(121.59034, 30.081779), {
	icon: icon2
});
map.addOverlay(mkr3);


var mkr4 = new BMap.Marker(new BMap.Point(119.612909, 29.063805), {
	icon: icon2
});
map.addOverlay(mkr4);


var mkr5 = new BMap.Marker(new BMap.Point(120.649141, 30.767111), {
	icon: icon2
});
map.addOverlay(mkr5);


/**
 * 获取xData.一天的所有 小时:分钟. 5分钟为间隔.
 * 区间00:00 - 23:59. 
 * 24*60 = 1440 数组元素最大数
 */
var getXData = function() {
	var date = new Date(); //'2019-04-09 23:59:04'
	var nowHour = date.getHours(); //当前时刻
	var nowMin = date.getMinutes(); //当前分钟
	//console.log(nowHour,nowMin,date.toLocaleString());
	var xData = [];
	//循环小时.
	for (var i = 0; i <= nowHour; i++) {
		//循环分钟.
		for (var j = 0; j <= 59; j++) {
			//判断.如果i为当前小时.则需要判断当前的分钟
			if (i == nowHour) {
				if (j <= nowMin) {
					//时刻为0-9
					if (i < 10) {
						//分钟为0-9
						if (j < 10) {
							if (j % 5 == 0) {
								xData.push('0' + i + ':0' + j);
							}
						} else {
							if (j % 5 == 0) {
								xData.push('0' + i + ':' + j);
							}
						}
					} else {
						//分钟为0-9
						if (j < 10) {
							if (j % 5 == 0) {
								xData.push(i + ':0' + j);
							}
						} else {
							if (j % 5 == 0) {
								xData.push(i + ':' + j);
							}
						}
					}
				}
			} else {
				//时刻为0-9
				if (i < 10) {
					//分钟为0-9
					if (j < 10) {
						if (j % 5 == 0) {
							xData.push('0' + i + ':0' + j);
						}
					} else {
						if (j % 5 == 0) {
							xData.push('0' + i + ':' + j);
						}
					}
				} else {
					//分钟为0-9
					if (j < 10) {
						if (j % 5 == 0) {
							xData.push(i + ':0' + j);
						}
					} else {
						if (j % 5 == 0) {
							xData.push(i + ':' + j);
						}
					}
				}
			}
		}
	}
	return xData;
}


function dateFormat(date) {
	var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
	var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
	return month + '-' + day;
}

/**
 * 获取最近7天
 */
var lastMonth = [];
for (var i = 0; i < 7; i++) {
	lastMonth.unshift(dateFormat(new Date(new Date().setDate(new Date().getDate() - i))))
}


$(function() {
	var myChart1 = echarts.init(document.getElementById('gonglv'), 'macarons');
	// 指定图表的配置项和数据
	var option1 = {
		title: {
			text: '今日功率曲线',
			left: '5%',
			textStyle: {
				fontWeight: 'normal',
				fontSize: 14,
				color: '#fff'
			}
		},
		tooltip: {
			trigger: 'axis',
			formatter: "{b} <br/> {a0} : {c0} kW/h <br/> {a1} : {c1} kW/h",
			axisPointer: {
				animation: false
			}
		},

		xAxis: {
			name: '',
			type: 'category',
			data: getXData(), //获取时间轴
			boundaryGap: false,
			axisLine: {
				lineStyle: {
					color: 'rgb(105, 116, 126)'
				}
			},
		},
		yAxis: [{
				name: '充电功率(MW)',
				type: 'value',
				axisLine: {
					lineStyle: {
						color: 'rgb(105, 116, 126)'
					},

				},
				splitLine: {
					show: false
				}

			},
			{
				name: '放电功率(MW)',
				type: 'value',
				axisLine: {
					lineStyle: {
						color: 'rgb(105, 116, 126)'
					}
				},
				splitLine: {
					show: false
				}
			}
		],
		series: [{
			name: '充电功率',
			type: 'line',
			smooth: true,
			symbol: 'circle',
			symbolSize: 9,
			showSymbol: false,
			lineStyle: {
				normal: {
					width: 5
				}
			},
			data: [83.7388824, 83.6448, 83.7088, 80.5488, 89.6275032, 78.331832, 78.1781936, 78.8953336, 79.343568,
				80.04152, 80.6114, 81.7876776, 81.8600448, 82.4427288, 82.95492, 82.9779328, 83.7272664, 84.318268,
				84.2836088, 84.204024, 81.2867232, 77.69244, 77.5651752, 78.8581728, 80.0025968, 79.436276, 79.9872032,
				80.0181392, 80.5231944, 81.115856, 80.6064864, 80.0213144, 79.4601608, 78.8186, 78.8658176, 78.22048,
				78.1834944, 81.1724128, 81.24744, 88.9715528, 84.2382416, 84.2873856, 84.370872, 83.772768, 83.583792,
				83.6134976, 83.6191232, 83.634996, 82.8865, 83.5970816, 83.6353104, 83.5804064, 83.7195024, 74.45422, 75.6,
				82.8, 81, 79.8, 78.6, 78, 76.8, 76.2, 82.2, 81.6, 81.6, 79.8, 79.2, 78.6, 78, 76.8, 76.2, 74.4, 73.8, 77.4,
				76.2, 79.2, 79.2, 78.6, 77.4, 76.8, 76.2, 75, 74.4, 73.8, 73.2, 72.6, 75.6, 75, 74.4, 73.8, 73.2, 73.2, 72.6,
				71.4, 70.8, 74.4, 73.8, 43.039552, 25.014336, 26.327808, 27.462096, 28.6203, 37.57592, 35.8296792, 24.5347296,
				25.222992, 26.850032, 27.9268704, 29.1683648, 29.1001408, 29.224956, 29.17046, 28.014336, 28.0135392,
				27.4189968, 27.3838608, 27.4271488, 27.4104088, 28.017312, 25.5797424, 24.38304, 36.46918, 40.1635584,
				51.9992768, 39.81744, 38.2387552, 48.99856, 49.650048, 60.80502, 64.413228, 66.222912, 72.485952, 72.486592,
				88.8652736, 83.3513944, 82.2453488, 83.37312, 82.800664, 82.8077224, 82.7669, 83.334292, 82.2021, 82.844772,
				82.1671104, 82.25806, 82.1460048, 82.2391552, 82.1987008, 81.55388, 81.5813568, 81.5045056, 81.5277504,
				80.9788064, 81.0064952, 82.0870272, 82.7382144, 83.3766048, 85.1723032, 85.832, 86.24, 82.1892984, 82.7785936,
				83.3486784, 83.3379648, 84.029712, 84.5634552, 84.6039872, 85.047984, 85.9662112, 85.7696064, 86.251964,
				86.9030976, 86.971424, 87.5669504, 87.6138432, 87.5171472, 87.5402272, 84.760608, 84.4068896, 84.6168,
				83.304232, 84.5083616, 83.4463888, 86.2845288, 86.338392, 85.10808, 85.0842368, 83.9964168, 84.5876072,
				83.97024, 91.9558656, 86.827356, 86.9696928, 86.3803168, 85.713088, 85.1732608, 84.5275136, 84.5162664,
				83.9351184, 84.642704, 84.0239904, 84.005744, 77.1471168, 82.2, 88.2, 86.4, 85.8, 93, 87, 85.2, 83.4, 82.2,
				81.6, 84, 82.8, 81.6, 80.4, 52.615104, 29.36028, 29.744336, 29.8502784, 29.9710464, 30.2958768, 27.9762,
				29.174368, 29.102224, 26.8149088, 27.9552448, 28.6079488, 27.9894552, 28.0345048, 27.342548, 29.0868768,
				28.5607264, 31.54016, 30.7572064, 30.4238304, 29.695596, 30.297504, 31.5276144, 25.652304, 28.5558464,
				27.3693248, 42.82006, 42.277968, 44.129776, 54.3336328, 59.5128576, 65.03608, 66.7977744, 67.5599712,
				73.146264, 73.086208, 71.886592, 79.686976, 73.68736, 72.48768, 76.088, 74.288256, 72.488512, 71.888832,
				71.889088, 74.88928, 73.089536, 71.889792, 85.509072, 83.576868, 82.9491872, 82.3713848, 82.4162304,
				83.0357184, 82.4003456, 81.21644, 80.5128544, 79.3935168, 82.3990496, 81.8278976, 81.187536, 84.2740544,
				84.1635056, 83.601036, 83.0692544, 82.3658, 82.3727088, 82.5292944, 81.290264, 80.6217936, 80.6217936
			], //Y轴数据取后台

		}, {
			name: '放电功率',
			type: 'line',
			smooth: true,
			yAxisIndex: 1,
			lineStyle: {
				normal: {
					width: 5
				}
			},
			data: [47.8094779, 47.8918, 47.8358, 40.4758, 62.9069347, 34.315647, 34.4500806, 35.8475831, 37.480378,
				38.89467, 40.421025, 43.4417821, 43.3784608, 44.8936123, 46.470445, 46.4503088, 47.8196419, 49.3275155,
				49.3578423, 49.427479, 41.8551172, 32.850115, 32.9614717, 35.8800988, 38.9287278, 37.3992585, 38.9421972,
				38.9151282, 40.4982049, 42.004626, 40.4253244, 38.9123499, 37.3783593, 35.914725, 35.8734096, 34.41308,
				34.4454424, 41.9551388, 41.88949, 61.4558913, 49.3975386, 49.3545376, 49.281487, 47.779828, 47.945182,
				47.9191896, 47.9142672, 47.9003785, 46.5303125, 47.9335536, 47.9001034, 47.9481444, 47.8264354, 57.9585575,
				79.231, 97.231, 92.731, 89.731, 86.731, 85.231, 82.231, 80.731, 95.731, 94.231, 94.231, 89.731, 88.231,
				86.731, 85.231, 82.231, 80.731, 76.231, 74.731, 83.731, 80.731, 88.231, 88.231, 86.731, 83.731, 82.231,
				80.731, 77.731, 76.231, 74.731, 73.231, 71.731, 79.231, 77.731, 76.231, 74.731, 73.231, 73.231, 71.731,
				68.731, 67.231, 76.231, 74.731, 86.596, 85.018456, 87.919168, 90.976666, 94.0132375, 116.55207, 112.0050307,
				83.4131116, 84.835882, 89.487222, 92.5949884, 95.5586808, 95.6183768, 95.5091635, 95.5568475, 92.518456,
				92.5191532, 91.0143778, 91.0451218, 91.0072448, 91.0218923, 92.515852, 86.5487254, 83.54584, 113.4704675,
				69.7378864, 97.8566328, 68.01574, 63.3220892, 57.95726, 59.412208, 59.7766075, 68.7694255, 73.260952,
				69.805792, 69.805232, 55.4738856, 42.0735299, 38.9913198, 42.05452, 40.530419, 40.5242429, 40.5599625,
				42.0884945, 39.0291625, 40.4918245, 39.0597784, 38.9801975, 39.0782458, 38.9967392, 39.0321368, 37.571355,
				37.5473128, 37.6145576, 37.5942184, 36.0495444, 36.0253167, 39.1298512, 40.5850624, 42.0514708, 46.5552347,
				48.003, 49.671, 39.0403639, 40.5497306, 42.0759064, 42.0852808, 43.505002, 45.0629767, 45.0275112, 46.664014,
				47.8855652, 48.0575944, 49.6605315, 51.1157896, 51.056004, 52.5599184, 52.5188872, 52.6034962, 52.5833012,
				44.890468, 45.1999716, 45.0163, 42.114797, 45.1111836, 41.9904098, 49.6320373, 49.584907, 46.61143,
				46.6322928, 43.5341353, 45.0418437, 43.55704, 62.8946176, 51.1820635, 51.0575188, 49.5482228, 48.107048,
				46.5543968, 45.0944256, 45.1042669, 43.5877714, 44.993634, 43.5100084, 43.525974, 51.5522728, 95.731, 110.731,
				106.231, 104.731, 122.731, 107.731, 103.231, 98.731, 95.731, 94.231, 100.231, 97.231, 94.231, 91.231, 96.462,
				95.390755, 97.079706, 96.9870064, 96.8813344, 98.6221078, 92.551825, 95.553428, 95.616554, 89.5179548,
				92.5701608, 94.0240448, 92.5402267, 92.5008083, 91.0812705, 95.6299828, 94.0653644, 101.58336, 100.2434444,
				98.5101484, 97.1223535, 98.620684, 101.5943374, 86.485234, 94.0696344, 91.0578408, 75.5134475, 73.962778,
				78.417446, 71.5140713, 64.9572496, 70.24943, 74.7829474, 76.1410252, 71.253019, 71.305568, 68.305232,
				87.804896, 72.80456, 69.80428, 78.804, 74.303776, 69.803552, 68.303272, 68.303048, 75.80288, 71.302656,
				68.302432, 52.335562, 47.9512405, 46.4754612, 44.9560383, 44.9167984, 46.3997464, 44.9306976, 41.916615,
				40.5072524, 37.4366728, 44.9318316, 43.4065896, 41.941906, 49.3662024, 49.4629326, 47.9300935, 46.3704024,
				44.960925, 44.9548798, 44.8178674, 41.852019, 40.4119306, 40.4119306
			]

		}]

	};

	// 使用刚指定的配置项和数据显示图表。
	myChart1.setOption(option1);

	setInterval(function() {
		myChart1.setOption({
			xAxis: [{
				data: getXData(),
			}]
		});
	}, 30000);



	var myChart2 = echarts.init(document.getElementById('chongfang'), 'macarons');
	// 指定图表的配置项和数据
	var option2 = {
		title: {
			left: '6%',
			text: '7天充放电量对比',
			textStyle: {
				fontWeight: 'normal',
				fontSize: 14,
				color: '#fff'
			}
		},
		tooltip: {
			trigger: 'axis',
			formatter: "{b} <br/> {a0} : {c0} MWh <br/> {a1} : {c1} MWh",
		},

		xAxis: [{
			axisLine: {
				lineStyle: {
					color: 'rgb(105, 116, 126)'
				}
			},
			type: 'category',
			data: lastMonth
		}],
		yAxis: [{
			name: '电量(MWh)',
			type: 'value',
			axisLine: {
				lineStyle: {
					color: 'rgb(105, 116, 126)'
				}
			},
			splitLine: {
				show: false
			}
		}],
		series: [{
				name: '充电量',
				type: 'bar',
				data: [312, 304, 301, 302, 316, 257, 296],

			},
			{
				name: '放电量',
				type: 'bar',
				data: [281, 290, 286, 281, 301, 271, 279],

			}
		]
	};

	// 使用刚指定的配置项和数据显示图表。
	myChart2.setOption(option2);




	var data = [{
		value: 37730.17,
		name: '削峰填谷'
	}, {
		value: 15681.81,
		name: '储能调频'
	}, {
		value: 8645.1,
		name: '平滑出力'
	}, {
		value: 1474.35,
		name: '无功跟踪'
	}, {
		value: 3484.84,
		name: '有功跟踪'
	}];
	var myChart3 = echarts.init(document.getElementById('zhuanyi'));
	// 指定图表的配置项和数据
	var option3 = {
		title: {
			text: '各运行模式下转移电量分布',
			textStyle: {
				fontWeight: 'normal',
				fontSize: 14,
				color: '#fff'
			}
		},
		tooltip: {
			trigger: 'item',
			formatter: "{a} <br/>{b} : {c} <br/>占比 : {d}%",
			position: function(point, params, dom, rect, size) {
				//其中point为当前鼠标的位置，size中有两个属性：viewSize和contentSize，分别为外层div和tooltip提示框的大小
				var x = point[0]; //
				var y = point[1];
				var viewWidth = size.viewSize[0];
				var viewHeight = size.viewSize[1];
				var boxWidth = size.contentSize[0];
				var boxHeight = size.contentSize[1];
				var posX = 0; //x坐标位置
				var posY = 0; //y坐标位置

				if (x < boxWidth) { //左边放不开
					posX = 5;
				} else { //左边放的下
					posX = x - boxWidth;
				}

				if (y < boxHeight) { //上边放不开
					posY = 5;
				} else { //上边放得下
					posY = y - boxHeight;
				}

				return [posX, posY]
			}

		},
		series: [{
			name: '运行模式',
			type: 'pie',
			radius: '55%',
			center: ['50%', '60%'],
			color: ['#86D560', '#AF89D6', '#59ADF3', '#FF999A', '#FFCC67'],
			data: data,
			itemStyle: {
				emphasis: {
					shadowBlur: 10,
					shadowOffsetX: 0,
					shadowColor: 'rgba(0, 0, 0, 0.5)'
				}
			}
		}]
	};

	// 使用刚指定的配置项和数据显示图表。
	myChart3.setOption(option3);




	var myChart4 = echarts.init(document.getElementById('paihang1'));
	// 指定图表的配置项和数据
	var option4 = {
		color: ['#3398DB'],
		title: {
			textStyle: {
				color: '#fff',
				fontWeight: 'normal',
				fontSize: 14,
			},
			text: '电站未处理告警排名',
			x: 'left'
		},
		tooltip: {
			trigger: 'axis',
			axisPointer: { // 坐标轴指示器，坐标轴触发有效
				type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
			}
		},
		grid: {
			left: '3%',
			right: '4%',
			bottom: '3%',
			containLabel: true
		},
		xAxis: [{
			type: 'category',
			data: ['杭州**电站', '宁波**电站', '衢州**电站', '嘉兴**电站', '湖州**电站'],
			axisTick: {
				alignWithLabel: true
			},
			axisLine: {
				lineStyle: {
					color: 'rgb(105, 116, 126)'
				}
			}
		}],
		yAxis: [{
			name: '告警数量',
			type: 'value',
			axisLine: {
				lineStyle: {
					color: 'rgb(105, 116, 126)'
				}
			}
		}],
		series: [{
			name: '数量',
			type: 'bar',
			barWidth: '60%',
			data: [18, 16, 11, 8, 8]
		}]
	};
	myChart4.setOption(option4);





	var myChart5 = echarts.init(document.getElementById('tab_chongdian'));
	// 指定图表的配置项和数据
	var option5 = {
		tooltip: {
			trigger: 'axis',
			axisPointer: { // 坐标轴指示器，坐标轴触发有效
				type: 'shadow' // 默认为直线，可选为："line" | "shadow"
			},
			formatter: '{b} <br/> 充电等效时长 : {c} 小时'

		},
		grid: {
			left: '3%',
			right: '4%',
			top: '1%',
			bottom: '1%',
			containLabel: true
		},
		yAxis: [{
			type: 'category',
			data: ['宁波**电站', '金华**电站', '杭州**电站', '嘉兴**电站', '杭州**电站'],
			inverse: true,
			axisTick: {
				show: false,
			},
			axisLabel: {
				textStyle: {
					fontSize: 14,
					color: 'rgb(105, 116, 126)'
				}
			},
			"axisLine": {
				"show": false
			},
			"splitLine": {
				"show": false
			}

		}],
		xAxis: [{
			type: 'value',
			axisLabel: {
				show: false
			},
			axisTick: {
				show: false,
			},
			axisLine: {
				show: false,
				lineStyle: {
					color: '#192469'
				}
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#17367c'
				}
			}
		}],
		//backgroundColor: '#192469',
		series: [{
			// name: 'Top 10',
			type: 'bar',
			barWidth: 14,
			data: [235.5, 220.4, 175.1, 173.9, 168.5],
			label: {
				normal: {
					show: true,
					position: 'insideRight',
					textStyle: {
						color: 'white' //color of value
					}
				}
			},

			itemStyle: {
				normal: {
					color: '#0590eb',
					barBorderRadius: 15,
					shadowColor: 'rgba(0,0,0,0.1)',
					shadowBlur: 3,
					shadowOffsetY: 3
				}
			}
		}]
	};

	// 使用刚指定的配置项和数据显示图表。
	myChart5.setOption(option5);



	$("#tab_fangdian").css('width', $("#nav_div").width()); //获取父容器的宽度具体数值直接赋值给图表
	var myChart6 = echarts.init(document.getElementById('tab_fangdian'));
	// 指定图表的配置项和数据
	var option6 = {
		tooltip: {
			trigger: 'axis',
			axisPointer: { // 坐标轴指示器，坐标轴触发有效
				type: 'shadow' // 默认为直线，可选为："line" | "shadow"
			},
			formatter: '{b} <br/> 放电等效时长 : {c} 小时'

		},
		grid: {
			left: '3%',
			right: '4%',
			top: '1%',
			bottom: '1%',
			containLabel: true
		},
		yAxis: [{
			type: 'category',
			data: ['金华**电站', '杭州**电站', '嘉兴**电站', '衢州**电站', '宁波**电站'],
			inverse: true,
			axisTick: {
				show: false,
			},
			axisLabel: {
				textStyle: {
					fontSize: 14,
					color: 'rgb(105, 116, 126)'
				}
			},
			"axisLine": {
				"show": false
			},
			"splitLine": {
				"show": false
			}

		}],
		xAxis: [{
			type: 'value',
			axisLabel: {
				show: false
			},
			axisTick: {
				show: false,
			},
			axisLine: {
				show: false,
				lineStyle: {
					color: '#192469'
				}
			},
			splitLine: {
				show: false,
				lineStyle: {
					color: '#17367c'
				}
			}
		}],
		series: [{
			type: 'bar',
			barWidth: 14,
			data: [253.1, 238.4, 203.8, 172.3, 170.6],
			label: {
				normal: {
					show: true,
					position: 'insideRight',
					textStyle: {
						color: 'white'
					}
				}
			},

			itemStyle: {
				normal: {
					color: '#0590eb',
					barBorderRadius: 15,
					shadowColor: 'rgba(0,0,0,0.1)',
					shadowBlur: 3,
					shadowOffsetY: 3
				}
			}
		}]
	};

	// 使用刚指定的配置项和数据显示图表。
	myChart6.setOption(option6);






	var myChart7 = echarts.init(document.getElementById('paihang2'));
	// 指定图表的配置项和数据
	var option7 = {

		grid: {
			left: '50%'
		},

		title: {
			text: '电站效率排名',
			textStyle: {
				color: '#fff',
				fontWeight: 'normal',
				fontSize: 13,
			}
		},

		series: [{
			type: 'pie',
			center: ['40%', '30%'],
			radius: ['10%', '20%'],
			hoverAnimation: false,
			label: {
				normal: {
					position: 'center'
				}
			},
			data: [{
				value: 8.8,
				name: '',
				itemStyle: {
					normal: {
						color: 'rgb(98,107,117)'
					}
				},
			}, {
				value: 91.2,
				name: '嘉兴**电站',
				itemStyle: {
					normal: {
						color: 'rgb(0,204,255)',
					}
				},
				label: {
					normal: {
						formatter: ' {d} % \n {b}',
						position: 'outside',
						textStyle: {
							color: 'rgb(0,204,255)',
							fontSize: 10
						}
					}
				},
			}, ]
		}, {
			type: 'pie',
			center: ['80%', '30%'],
			radius: ['10%', '20%'],
			hoverAnimation: false,
			label: {
				normal: {
					position: 'center'
				}
			},
			data: [{
				value: 9.5,
				name: '',
				itemStyle: {
					normal: {
						color: 'rgb(98,107,117)'
					}
				},
			}, {
				value: 90.5,
				name: '杭州**电站',
				itemStyle: {
					normal: {
						color: 'rgb(128,159,255)',
					}
				},
				label: {
					normal: {
						formatter: '{d} % \n {b}',
						position: 'outside',
						textStyle: {
							color: 'rgb(128,159,255)',
							fontSize: 10
						}
					}
				}
			}, ]
		}, {
			type: 'pie',
			center: ['30%', '68%'],
			radius: ['10%', '20%'],
			hoverAnimation: false,
			label: {
				normal: {
					position: 'center'
				}
			},
			data: [{
				value: 9.7,
				name: '',
				itemStyle: {
					normal: {
						color: 'rgb(98,107,117)'
					}
				},
			}, {
				value: 90.3,
				name: '金华**电站',
				itemStyle: {
					normal: {
						color: 'rgb(200,178,224)',
					}
				},
				label: {
					normal: {
						formatter: '{d} % \n {b}',
						position: 'outside',
						textStyle: {
							color: 'rgb(200,178,224)',
							fontSize: 10
						}
					}
				}
			}, ]
		}, {
			type: 'pie',
			center: ['60%', '68%'],
			radius: ['10%', '20%'],
			hoverAnimation: false,
			label: {
				normal: {
					position: 'center'
				}
			},
			data: [{
				value: 9.9,
				name: '',
				itemStyle: {
					normal: {
						color: 'rgb(98,107,117)'
					}
				},
			}, {
				value: 90.1,
				name: '衢州**电站',
				itemStyle: {
					normal: {
						color: 'rgb(50,218,221)',
					}
				},
				label: {
					normal: {
						formatter: '{d} % \n {b}',
						position: 'outside',
						textStyle: {
							color: 'rgb(50,218,221)',
							fontSize: 10
						}
					}
				}
			}, ]
		}, {
			type: 'pie',
			center: ['90%', '68%'],
			radius: ['10%', '20%'],
			hoverAnimation: false,
			label: {
				normal: {
					position: 'center'
				}
			},
			data: [{
				value: 10.2,
				name: '',
				itemStyle: {
					normal: {
						color: 'rgb(98,107,117)'
					}
				},
			}, {
				value: 89.8,
				name: '宁波**电站',
				itemStyle: {
					normal: {
						color: '#ffd285',
					}
				},
				label: {
					normal: {
						formatter: '{d} % \n {b}',
						position: 'outside',
						textStyle: {
							color: '#ffd285',
							fontSize: 10
						}
					}
				}
			}, ]
		}, ]

	};

	// 使用刚指定的配置项和数据显示图表。
	myChart7.setOption(option7);

})
